

Array.prototype.myIncludes2 = function (valueToFind, fromIndex = 0) {
    for (let i = fromIndex; i < this.length; i ++) {
        if (this[i] === valueToFind) return true
    }

    return false
}
const arr = [1,2,3,4,5,6]
console.log(arr.myIncludes2(2, 3));
